<!DOCTYPE html>
<!--suppress ThymeleafVariablesResolveInspection-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=0.6">
    <title>搜房</title>
    <script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
    <script src="/static/axios.min.js"></script>
    <script src="/static/vue.min.js"></script>
    <link rel="stylesheet" href="/static/css/test.css">
    <script src="/static/js/jquery-1.8.2.min.js"></script>
</head>
<body>
<div id="app">
    <div class="search-box">
        <input class="search-txt" type="text" id="title" placeholder="Type to search">
        <div class="search-btn" href="#">
            <img src="/static/css/img/s_icon.png" width="60px" onclick="a()">
        </div>
    </div>
</div>

<script>
    function a() {
        var b = $("#title").val()
        axios.get(`/system/house/search?title=${b}`).then(({data}) => {
            sessionStorage.setItem("title",data.data)
            location.href="/system/house/esfSale";
        })
    }
</script>
</body>
</html>
